<T:ViewBase x:Class="WPFExcelReport.TICC_ABPOSFS02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.KRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LFD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.LFD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SEASON:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.SEASON}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SECTION:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.SECTION}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.ART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.VAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FARBE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.FARBE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PHOTO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.PHOTO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=CDES:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.CDES}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ARTDES:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.ARTDES}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=EXTPRODUCER:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwICC_ABPOSFS.EXTPRODUCER}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsICC_ABPOSFS,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwICC_ABPOSFS}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwICC_ABPOSFS, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="KRS"
                                    Binding="{Binding Path=KRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LFD"
                                    Binding="{Binding Path=LFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SEASON"
                                    Binding="{Binding Path=SEASON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SEASON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SECTION"
                                    Binding="{Binding Path=SECTION, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SECTION}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ART"
                                    Binding="{Binding Path=ART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VAR"
                                    Binding="{Binding Path=VAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FARBE"
                                    Binding="{Binding Path=FARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PHOTO"
                                    Binding="{Binding Path=PHOTO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PHOTO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CDES"
                                    Binding="{Binding Path=CDES, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CDES}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ARTDES"
                                    Binding="{Binding Path=ARTDES, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ARTDES}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EXTPRODUCER"
                                    Binding="{Binding Path=EXTPRODUCER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EXTPRODUCER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="STARTDAT"
                                    Binding="{Binding Path=STARTDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=STARTDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="DELDAT"
                                    Binding="{Binding Path=DELDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=DELDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ETDDAT"
                                    Binding="{Binding Path=ETDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ETDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AETDDAT"
                                    Binding="{Binding Path=AETDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AETDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="CAPP"
                                    Binding="{Binding Path=CAPP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=CAPP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SMAPP"
                                    Binding="{Binding Path=SMAPP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SMAPP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SZAPP"
                                    Binding="{Binding Path=SZAPP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SZAPP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP1"
                                    Binding="{Binding Path=WAPP1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP2"
                                    Binding="{Binding Path=WAPP2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP3"
                                    Binding="{Binding Path=WAPP3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP4"
                                    Binding="{Binding Path=WAPP4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP5"
                                    Binding="{Binding Path=WAPP5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP6"
                                    Binding="{Binding Path=WAPP6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP7"
                                    Binding="{Binding Path=WAPP7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WAPP8"
                                    Binding="{Binding Path=WAPP8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WAPP8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP1"
                                    Binding="{Binding Path=AAPP1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP2"
                                    Binding="{Binding Path=AAPP2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP3"
                                    Binding="{Binding Path=AAPP3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP4"
                                    Binding="{Binding Path=AAPP4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP5"
                                    Binding="{Binding Path=AAPP5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP6"
                                    Binding="{Binding Path=AAPP6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP7"
                                    Binding="{Binding Path=AAPP7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AAPP8"
                                    Binding="{Binding Path=AAPP8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AAPP8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WCHECK"
                                    Binding="{Binding Path=WCHECK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WCHECK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="EXTTECH"
                                    Binding="{Binding Path=EXTTECH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=EXTTECH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FPRICE"
                                    Binding="{Binding Path=FPRICE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FPRICE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TQTY"
                                    Binding="{Binding Path=TQTY, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TQTY}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="REMARK"
                                    Binding="{Binding Path=REMARK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=REMARK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="S"
                                    Binding="{Binding Path=S, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=S}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="M"
                                    Binding="{Binding Path=M, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=M}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="L"
                                    Binding="{Binding Path=L, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=L}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="XL"
                                    Binding="{Binding Path=XL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=XL}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
